@layout("/template/container.html",{bg:"bg-white",js:["/js/module/admin/sysApplication/add.js"]}){
<form id="formContainer" lay-filter="formContainer" class="layui-form model-form">
	<input type="hidden" name="parentAppId" value="${parentAppId!''}">
	<div class="layui-form-item">
		<label class="layui-form-label">名称<span style="color: red;">*</span></label>
		<div class="layui-input-block">
			<input  id="name" name="name" placeholder="请输入名称" type="text" class="layui-input" lay-verify="required" required/>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">描述</label>
		<div class="layui-input-block">
			<input name="description" placeholder="请输入描述" type="text" class="layui-input"/>
		</div>
	</div>
	<div class="layui-form-item layui-form" id="templateContainer">
		<label class="layui-form-label">使用模板</label>
		<div class="layui-input-block">
			<input name="name" type="text" class="layui-input" onclick="system.openDataSelector('/admin/sysApplication/to/application/template' ,'templateContainer' ,'应用模板选择')" autocomplete="off"/>
			<p style="color: red ;font-size: 9px;">使用选择的模板应用创建应用，可复用指定应用的菜单，菜单角色等信息</p>
		</div>
		<input type="hidden" name="appId" id="appId">
	</div>
	<div class="layui-form-item text-right">
		<button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
		<button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
	</div>
</form>
@}
